import React, { Component } from 'react'
import querystring from "querystring"

export default class list extends Component {
    componentDidMount(){
        console.log(this.props);
        let search = this.props.location.search;
        // let result = querystring.parse(search.slice(1))
        // console.log(result);

        let myURL = new URL("http://localhost:3000"+search);
        let id = myURL.searchParams.get("id")
        console.log(id);
    }
    render() {
        return (
            <div>
                <h3>列表</h3>
            </div>
        )
    }
}
